home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Macintosh / ResEdit3.0.sit / ResEdit™ 3.0 / ResEdit 3.0.rsrc / TEXT_2001_VDL help.txt < prev    next >
Text File  |  1997-01-27  |  6KB  |  159 lines

  1. VDL Help
  2. VDL Grammar
  3. ===========
  4.  
  5. VDLProgram  ::= Statement*
  6. Statement   ::= CommandName [ ‚Äú(‚Äù [Parameters] ‚Äú)‚Äù ] ‚Äú;‚Äù
  7.               | ‚ÄúLayout‚Äù [ ‚Äú(‚Äù [ViewOpts] ‚Äú)‚Äù ] Body
  8.               | ‚ÄúHList‚Äù [ ‚Äú(‚Äù [ListOpts] ‚Äú)‚Äù ] Body
  9.               | ‚ÄúVList‚Äù [ ‚Äú(‚Äù [ListOpts] ‚Äú)‚Äù ] Body
  10.               | ‚ÄúDynamicHList‚Äù ‚Äú(‚Äù AttrSpec, TypeName [‚Äú,‚Äù DLOpts] ‚Äú)‚Äù Statement
  11.               | ‚ÄúDynamicVList‚Äù ‚Äú(‚Äù AttrSpec, TypeName [‚Äú,‚Äù DLOpts] ‚Äú)‚Äù Statement
  12.               | ‚ÄúSwitch‚Äù ‚Äú(‚Äù AttrSpec [‚Äú,‚Äù ViewOpts] ‚Äú)‚Äù SwitchBody
  13.               | ‚ÄúMargin‚Äù ‚Äú(‚Äú Parameters ‚Äú)‚Äù Statement
  14.               | ‚ÄúLabel‚Äù ‚Äú(‚Äú Parameters ‚Äú)‚Äù Statement
  15.               | ‚ÄúTag‚Äù ‚Äú(‚Äù string ‚Äú)‚Äù Statement
  16.  
  17. Body        ::= Statement ‚Äú;‚Äù
  18.               | ‚Äú{‚Äù Statement* ‚Äú}‚Äù
  19. SwitchBody  ::= ‚Äú{‚Äù SwitchEntry* ‚Äú}‚Äù
  20. SwitchEntry ::= SwitchLabel+ Statement
  21. SwitchLabel ::= ‚Äúcase‚Äù number ‚Äú:‚Äù
  22.               | ‚Äúdefault‚Äù ‚Äú:‚Äù
  23.  
  24. Parameters  ::= Parameter
  25.               | ViewOpts
  26.               | Parameter ‚Äú,‚Äù Parameters
  27. Parameter   ::= AttrSpec  | Expression | string
  28. Expression  ::= (as in EDL, but must be a constant expression)
  29. ViewOpts    ::= ViewOption
  30.               | ViewOption ‚Äú,‚Äù ViewOpts
  31. ViewOption  ::= ‚ÄúWidth‚Äù ‚Äú=‚Äù Parameter | ‚ÄúUseParent‚Äù
  32.               | ‚ÄúHeight‚Äù ‚Äú=‚Äù Parameter | ‚ÄúUseParent‚Äù
  33.               | ‚ÄúLeft‚Äù ‚Äú=‚Äù Parameter
  34.               | ‚ÄúTop‚Äù ‚Äú=‚Äù Parameter
  35.               | ‚ÄúBackColor‚Äù ‚Äú=‚Äù ‚Äú{‚Äù Parameter ‚Äú,‚Äù Parameter ‚Äú,‚Äù
  36.                                     Parameter ‚Äú}‚Äù
  37.               | ‚ÄúAlignment‚Äù ‚Äú=‚Äù (‚ÄúLeft‚Äù | ‚ÄúRight‚Äù | ‚ÄúCenter‚Äù)
  38. ListOpts    ::= ListOption
  39.               | ListOption ‚Äú,‚Äù ListOpts
  40. ListOption  ::= ‚ÄúHScroll‚Äù | ‚ÄúVScroll‚Äù | ViewOption
  41. DLOpts      ::= DLOption
  42.               | DLOption ‚Äú,‚Äù DLOpts
  43. DLOption    ::= ‚ÄúEditHandles‚Äù | ListOption
  44. AttrSpec    ::= AttrName AttrSuffix*
  45.               | ‚Äú*‚Äù AttrSuffix+
  46. AttrSuffix  ::= ‚Äú.‚Äù AttrName
  47.  
  48. CommandName ::= identifier      ;see below for a list of commands
  49. TypeName    ::= identifier      ;name of an element type
  50. AttrName    ::= identifier      ;attribute name in some element
  51.  
  52.  
  53. Command summary
  54. ===============
  55.  
  56. Layout [options]
  57. HList [options]
  58. VList [options]
  59. DynamicHList(attrName, entryTypeName [, options])
  60. DynamicVList(attrName, entryTypeName [, options])
  61. Switch(attrName [, options])
  62.    {
  63.     [
  64.     case <number>: 
  65.          <statement>;
  66.     ]
  67.  
  68.    [
  69.    default: 
  70.       <statement>;
  71.    ]
  72.    }
  73. Margin(left, top, right, bottom [, frameStyle, frameLoc , options])
  74. Label(string, style [, options])
  75. Tag(string)
  76.  
  77. EditText(attrName [, filter] [, options]);
  78.     Signed(bitCount)      - bitCount can be 1-32
  79.     Unsigned(bitCount)    - bitCount must be 8, 16, or 32
  80.     UnsignedHex(bitCount) - bitCount must be 8, 16, or 32
  81.     Fixed(x.y)            - A signed fixed-point value.  x and y
  82.                            must sum to either 16 or 32.
  83.     UnsignedFixed(x.y)    - Similarly, for unsigned values.
  84.     Chars(charCount)      - A character string.  charCount must be 1, 2, or 4.
  85.     Date                  - A standard Macintosh date value.
  86.  Options for EditText Label:
  87.     Label = Literal String
  88.     LabelWidth = Integer
  89.     LabelAlignment = [Left, Right or Center]
  90.  The last two Label options will be ignored if the ‚ÄúLabel‚Äù option is missing.
  91.  
  92.  Additional Optional params for EditText:
  93.  These params have no values, simply put the param name in the optional parameter list 
  94.  to signify a value of ‚Äútrue‚Äù, and leave it out for ‚Äúfalse‚Äù:
  95.     SingleLine - Make the edit text be 1 line tall, no matter how much text is in it.
  96.     FlushImmediately - Flush edit changes to the data after every keystroke.
  97.     DropOnReturn - drop the text selection as soon as a return key is hit.
  98.     NoSmartQuotes - only use quotes from Yogi Berra
  99.     NoFrame - don‚Äôt draw the 1 pixel frame and 2 pixel margin around the text.
  100.  
  101. EditHex(attrName, resizable, columnCount, [, options]);
  102.  
  103. CheckBox(title, attrName [, options]);
  104. RadioButton(title, attrName, value [, options]);
  105.  
  106. PushButton(title, attribute, actionProcName);
  107. DefaultButton(title, attribute, actionProcName);
  108. CancelButton(title, attribute, actionProcName);
  109.  
  110. BooleanPopup(title, titleWidth [, options])
  111.    {
  112.    BoolItem(itemTitle, attrName); ;repeated one or more times
  113.    }
  114.  
  115. IntegerPopup(title, titleWidth, attrName [, options])
  116.    {
  117.    IntItem(itemTitle, itemValue); ;repeated one or more times
  118.    }
  119.  
  120. ElementPopup( title, listAttr, itemNameAttr, selAttr, titleWidth [, options] );
  121. FontPopup(title, titleWidth, attrName [, options]);
  122. StaticText (param [, options]);
  123.  
  124. EditorButton("title", elementField, "VDL Name", "Title Prefix");
  125.  
  126. PICT(id [, options]);
  127. ICON(id [, options]);
  128. ics4(id [, options]);
  129. ics8(id [, options]);
  130. Spacer [(options)];
  131.  
  132. //Note: cicns from the working resource file will not be displayed, only cicns in the 
  133. //far application itself will appear,
  134. cicn(id, options); 
  135.  
  136. PopupColorControl(redAttr, greenAttr, blueAttr [,options])
  137.    {
  138.    ColorItem(red, green, blue);  ;repeated one or more times
  139.    }
  140. ColorControl(redAttr, greenAttr, blueAttr [,options]);
  141. DefaultPopupColorControl(redAttr, greenAttr, blueAttr [,options]);
  142.  
  143. DeclareNamedStatment(“StatementName”)
  144.    Statement();
  145. IncludeNamedStatement(“StatementName”[,options]);
  146.  
  147. View options
  148. ============
  149.  
  150. Width  = Expression | ‚ÄúUseParent‚Äù
  151. Height = Expression | ‚ÄúUseParent‚Äù
  152. Left   = Expression
  153. Top    = Expression
  154. BackColor = {redvalue,greenvalue,bluevalue}
  155. Alignment = Left | Right | Center
  156. HScroll
  157. VScroll
  158. Editable
  159.